package com.cby.springboot.demo.utils;

import java.util.Random;

public class RandomUtils {

    public static String generateId() {
        Random random = new Random();
        int num = random.nextInt(999999);
        if(num < 100000) num += 100000;
        System.out.println("随机数是："+num);
        return String.valueOf(num);
    }
}
